home *** CD-ROM | disk | FTP | other *** search
/ Max Special: Max Gallery / Max Special Gallery.iso / pc / st_kayr.dir / 00062_Movie script.ls < prev    next >
Encoding:
Text File  |  1997-04-03  |  3.4 KB  |  155 lines

  1. on startMovie
  2.   global slide, fromFrame, fromMovie
  3.   cursor(-1)
  4.   set fromFrame to EMPTY
  5.   set fromMovie to EMPTY
  6.   set slide to 0
  7.   hideMusicMenu()
  8.   hideMaxMenu()
  9.   puppetSound(0)
  10.   updateStage()
  11.   replayMusic()
  12. end
  13.  
  14. on testRollOverButton
  15.   if rollOver(11) then
  16.     disabilitaAltri(11, 11, 17)
  17.     flashRoller(11, 2, EMPTY)
  18.   else
  19.     if rollOver(12) then
  20.       disabilitaAltri(12, 11, 17)
  21.       flashRoller(12, 4, EMPTY)
  22.     else
  23.       if rollOver(13) then
  24.         disabilitaAltri(13, 11, 17)
  25.         flashRoller(13, 6, EMPTY)
  26.       else
  27.         if rollOver(14) then
  28.           disabilitaAltri(14, 11, 17)
  29.           flashRoller(14, 8, EMPTY)
  30.         else
  31.           if rollOver(15) then
  32.             disabilitaAltri(15, 11, 17)
  33.             flashRoller(15, 10, EMPTY)
  34.           else
  35.             if rollOver(16) then
  36.               disabilitaAltri(16, 11, 17)
  37.               flashRoller(16, 12, EMPTY)
  38.             else
  39.               if rollOver(17) then
  40.                 disabilitaAltri(17, 11, 17)
  41.                 flashRoller(17, 14, EMPTY)
  42.               else
  43.                 disabilitaTutto(11, 17)
  44.               end if
  45.             end if
  46.           end if
  47.         end if
  48.       end if
  49.     end if
  50.   end if
  51. end
  52.  
  53. on flashRoller whichSprite, numCast, scriptToExecute
  54.   puppetSprite(whichSprite, 1)
  55.   set myCast to numCast
  56.   set the memberNum of sprite whichSprite to myCast + 1
  57.   updateStage()
  58.   do(scriptToExecute)
  59. end
  60.  
  61. on disabilitaTutto inf, sup
  62.   repeat with i = inf to sup
  63.     puppetSprite(i, 0)
  64.     set the cursor of sprite i to -1
  65.   end repeat
  66. end
  67.  
  68. on abilitaTutto inf, sup
  69.   repeat with i = inf to sup
  70.     puppetSprite(i, 1)
  71.   end repeat
  72. end
  73.  
  74. on disabilitaAltri whichSprite, inf, sup
  75.   repeat with i = inf to sup
  76.     if i <> whichSprite then
  77.       puppetSprite(i, 0)
  78.     end if
  79.   end repeat
  80. end
  81.  
  82. on notAvaRollOverButton
  83.   if rollOver(11) then
  84.     disabilitaAltri(11, 11, 17)
  85.     flashRoller(11, 2, EMPTY)
  86.   else
  87.     if rollOver(13) then
  88.       disabilitaAltri(13, 11, 17)
  89.       flashRoller(13, 6, EMPTY)
  90.     else
  91.       if rollOver(14) then
  92.         disabilitaAltri(14, 11, 17)
  93.         flashRoller(14, 8, EMPTY)
  94.       else
  95.         if rollOver(15) then
  96.           disabilitaAltri(15, 11, 17)
  97.           flashRoller(15, 10, EMPTY)
  98.         else
  99.           if rollOver(16) then
  100.             disabilitaAltri(16, 11, 17)
  101.             flashRoller(16, 12, EMPTY)
  102.           else
  103.             if rollOver(17) then
  104.               disabilitaAltri(17, 11, 17)
  105.               flashRoller(17, 14, EMPTY)
  106.             else
  107.               disabilitaTutto(11, 17)
  108.             end if
  109.           end if
  110.         end if
  111.       end if
  112.     end if
  113.   end if
  114. end
  115.  
  116. on notIndRollOverButton
  117.   if rollOver(12) then
  118.     disabilitaAltri(12, 11, 17)
  119.     flashRoller(12, 4, EMPTY)
  120.   else
  121.     if rollOver(13) then
  122.       disabilitaAltri(13, 11, 17)
  123.       flashRoller(13, 6, EMPTY)
  124.     else
  125.       if rollOver(14) then
  126.         disabilitaAltri(14, 11, 17)
  127.         flashRoller(14, 8, EMPTY)
  128.       else
  129.         if rollOver(15) then
  130.           disabilitaAltri(15, 11, 17)
  131.           flashRoller(15, 10, EMPTY)
  132.         else
  133.           if rollOver(16) then
  134.             disabilitaAltri(16, 11, 17)
  135.             flashRoller(16, 12, EMPTY)
  136.           else
  137.             if rollOver(17) then
  138.               disabilitaAltri(17, 11, 17)
  139.               flashRoller(17, 14, EMPTY)
  140.             else
  141.               disabilitaTutto(11, 17)
  142.             end if
  143.           end if
  144.         end if
  145.       end if
  146.     end if
  147.   end if
  148. end
  149.  
  150. on idle
  151.   testMusicRollover()
  152.   testMaxRollover()
  153.   testQuitRollover()
  154. end
  155.